<template>
  <!--  精准帮办  -->
  <div @click="routerJump(item)">
    <div class="f-r a-c title-box">
      <div v-if="item.projectName" class="label-title">{{ item.projectName }}</div>
      <div class="button1">{{ item.tableName }}</div>
    </div>
    <div class="status status1" :style="{ backgroundColor: item.statusColor }">{{ item.statusName }}</div>
    <div class="label">
      帮办类型：{{ status[item.atype] }}
    </div>
    <div class="label">
      需求描述：{{ item.content }}
    </div>
    <div class="label">
      提交时间：{{ item.createTime }}
    </div>
  </div>
</template>
  
<script>
export default {
  name: 'HelpDetail1',
  props: {
    item: {
      type: Object,
      default: () => {}
    }
  },
  data() {
    return {
      status: ['', '模拟审批', '外线报装', '预验收服务', '联合验收服务', '旧厂区改造服务', '全程帮办']
    }
  },
  methods: {
    routerJump(item) {
      this.$router.push({
        path: '/help-detail',
        query: {
          userId: item.userId,
          id: item.id,
          types: item.types,
          vconsole: true
        }
      })
    }
  
  }
}
</script>
  
  <style scoped lang="scss">
  .title-box {
      margin-bottom: 15px;
      padding-right: 40px;
  }
  .label-title {
      line-height: 15px;
      font-size: 16px;
      font-family: PingFang SC;
      font-weight: bold;
      color: #333333;
      margin-right: 10px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
  }
  .link {
      height: 12px;
      font-size: 12px;
      font-family: PingFang SC;
      font-weight: 500;
      color: #2F86FD;
  }
  .label {
      height: 12px;
      font-size: 12px;
      color: #333333;
      margin-bottom: 13px;
      &:last-of-type {
          margin-bottom: 0;
      }
  }
  
  .button1 {
      flex-shrink: 0;
      color: #2B80FF;
      width: 59px;
      height: 24px;
      background: #D8E8FF;
      border: 1px solid #2F86FD;
      border-radius: 10px;
      text-align: center;
      font-size: 12px;
      line-height: 22px;
  }
  .status {
      width: 50px;
      height: 21px;
      line-height: 21px;
      font-size: 12px;
      color: #fff;
      border-radius: 0px 10px 0px 0px;
      position: absolute;
      right: -2px;
      top: 0;
      text-align:center;
  }
  .status1 {
      background: #4B93FE;
  }
  .status2 {
      background: #20B153;
  }
  
  </style>
  